package com.mowh.gof23.structural.patterns.bridge;

/**
 * @author mowh1gd
 * @create 2023/10/25 8:03
 */
// 功能层次结构上可做各种功能拓展
public class CountDisplay extends Display{
    public CountDisplay(DisplayImpl displayImpl) {
        super(displayImpl);
    }
    public void multiDisplay(int times) { //拓展的功能
        open();
        for (int i = 0; i < times; i++) {
            print();
        }
        close();
    }
}
